package com.yellowpage.nsp.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * NspFetchLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "NSP_FETCH_LOG")
public class NspFetchLog implements java.io.Serializable {

	// Fields

	private Long fetchLogId;
	
	private Integer serverId;
	private String logFileName;
	
	private String fetchType;
	private String fetchTable;
	private String note;
	private String status;
	private Integer startLogId;
	private Integer endLogId;
	private Date startTime;
	private Date endTime;

	// Constructors

	/** default constructor */
	public NspFetchLog() {
	}

	/** full constructor */
	public NspFetchLog(String fetchType, String fetchTable, String note,
			String status, Integer startLogId, Integer endLogId,
			Date startTime, Date endTime) {
		this.fetchType = fetchType;
		this.fetchTable = fetchTable;
		this.note = note;
		this.status = status;
		this.startLogId = startLogId;
		this.endLogId = endLogId;
		this.startTime = startTime;
		this.endTime = endTime;
	}
	
	/** full constructor */
	public NspFetchLog(Integer serverId,String logFileName,String fetchType, String fetchTable, String note,
			String status, Integer startLogId, Integer endLogId,
			Date startTime, Date endTime) {
		this.serverId = serverId;
		this.logFileName = logFileName;
		
		this.fetchType = fetchType;
		this.fetchTable = fetchTable;
		this.note = note;
		this.status = status;
		this.startLogId = startLogId;
		this.endLogId = endLogId;
		this.startTime = startTime;
		this.endTime = endTime;
	}
	
	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "FETCH_LOG_ID", unique = true, nullable = false)
	public Long getFetchLogId() {
		return this.fetchLogId;
	}
	public void setFetchLogId(Long fetchLogId) {
		this.fetchLogId = fetchLogId;
	}
	
	

	@Column(name = "SERVER_ID")
	public Integer getServerId(){
		return this.serverId;
	}
	
	public void setServerId(Integer serverId){
		this.serverId = serverId;
	}
	
	@Column(name = "LOG_FILE_NAME", length = 52)
	public String getLogFileName(){
		return this.logFileName;
	}
	
	public void setLogFileName(String logFileName){
		this.logFileName = logFileName;
	}
	
	@Column(name = "FETCH_TYPE", length = 52)
	public String getFetchType() {
		return this.fetchType;
	}

	public void setFetchType(String fetchType) {
		this.fetchType = fetchType;
	}

	@Column(name = "FETCH_TABLE", length = 52)
	public String getFetchTable() {
		return this.fetchTable;
	}

	public void setFetchTable(String fetchTable) {
		this.fetchTable = fetchTable;
	}

	@Column(name = "NOTE", length = 1024)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Column(name = "STATUS", length = 24)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "START_LOG_ID")
	public Integer getStartLogId() {
		return this.startLogId;
	}

	public void setStartLogId(Integer startLogId) {
		this.startLogId = startLogId;
	}

	@Column(name = "END_LOG_ID")
	public Integer getEndLogId() {
		return this.endLogId;
	}

	public void setEndLogId(Integer endLogId) {
		this.endLogId = endLogId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "START_TIME", length = 0)
	public Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "END_TIME", length = 0)
	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

}